﻿using Factory;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class B_Shape : IShape
    {
        public void Add(Shape item)
        {
            CreateFactory.GetShape().Add(item);
        }

        public void Delete(int id)
        {
            CreateFactory.GetShape().Delete(id);
        }

        public Shape FindById(int id)
        {
           return CreateFactory.GetShape().FindById(id);
        }

        public List<Shape> GetAll()
        {
            return CreateFactory.GetShape().GetAll();
        }

        public void Updata(int id, Shape item)
        {
            CreateFactory.GetShape().Updata(id, item);
        }
    }
}
